<template>
  <div>
    <button @click="btnClick">接口请求</button>
  </div>
</template>
<script>
import axios from 'axios'
export default {
  methods: {
    async btnClick() {
      const res = await axios({
        url: 'http://geek.itheima.net/v1_0/channels'
      })
      console.log(res)
    }
  }
}
</script>
<style>
</style>
